package demo;

import java.util.ArrayList;
import java.util.List;

public class DemoServiceImpl implements DemoService {

	public String sayHello(String name) {
		return "Hello " + name;  
	}

	public List<User> getUsers() {
		List<User> list = new ArrayList<User>();  
        User u1 = new User();  
        u1.setName("jack");  
        u1.setAge(20);  
        u1.setSex("女");  
          
        User u2 = new User();  
        u2.setName("tom");  
        u2.setAge(21);  
        u2.setSex("女");  
          
        User u3 = new User();  
        u3.setName("rose");  
        u3.setAge(19);  
        u3.setSex("女");  
          
        list.add(u1);  
        list.add(u2);  
        list.add(u3);  
        return list;  
	}

	public List<String> selectList() {
		List<String> list=new ArrayList<String>();
		list.add("aa");
		list.add("bb");
		list.add("cc");
		return list;
	}
	
	public String selectStr() {
		return "str";
	}
}

